package com.blrs.service.enterprise.businessinfo.impl;

import java.util.List;

import com.blrs.service.enterprise.businessinfo.IBusinessFollowAnnotaterService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.blrs.mapper.BusinessFollowAnnotaterMapper;
import com.blrs.domain.BusinessFollowAnnotater;

/**
 * 商机跟进记录批注人信息Service业务层处理
 * 
 * @author xiaoyang
 * @date 2025-05-29
 */
@Service
public class BusinessFollowAnnotaterServiceImpl implements IBusinessFollowAnnotaterService
{
    @Autowired
    private BusinessFollowAnnotaterMapper businessFollowAnnotaterMapper;

    /**
     * 查询商机跟进记录批注人信息
     * 
     * @param id 商机跟进记录批注人信息主键
     * @return 商机跟进记录批注人信息
     */
    @Override
    public BusinessFollowAnnotater selectBusinessFollowAnnotaterById(Long id)
    {
        return businessFollowAnnotaterMapper.selectBusinessFollowAnnotaterById(id);
    }

    /**
     * 查询商机跟进记录批注人信息列表
     * 
     * @param businessFollowAnnotater 商机跟进记录批注人信息
     * @return 商机跟进记录批注人信息
     */
    @Override
    public List<BusinessFollowAnnotater> selectBusinessFollowAnnotaterList(BusinessFollowAnnotater businessFollowAnnotater)
    {
        return businessFollowAnnotaterMapper.selectBusinessFollowAnnotaterList(businessFollowAnnotater);
    }

    /**
     * 新增商机跟进记录批注人信息
     * 
     * @param businessFollowAnnotater 商机跟进记录批注人信息
     * @return 结果
     */
    @Override
    public int insertBusinessFollowAnnotater(BusinessFollowAnnotater businessFollowAnnotater)
    {
        return businessFollowAnnotaterMapper.insertBusinessFollowAnnotater(businessFollowAnnotater);
    }

    /**
     * 修改商机跟进记录批注人信息
     * 
     * @param businessFollowAnnotater 商机跟进记录批注人信息
     * @return 结果
     */
    @Override
    public int updateBusinessFollowAnnotater(BusinessFollowAnnotater businessFollowAnnotater)
    {
        return businessFollowAnnotaterMapper.updateBusinessFollowAnnotater(businessFollowAnnotater);
    }

    /**
     * 批量删除商机跟进记录批注人信息
     * 
     * @param ids 需要删除的商机跟进记录批注人信息主键
     * @return 结果
     */
    @Override
    public int deleteBusinessFollowAnnotaterByIds(Long[] ids)
    {
        return businessFollowAnnotaterMapper.deleteBusinessFollowAnnotaterByIds(ids);
    }

    /**
     * 删除商机跟进记录批注人信息信息
     * 
     * @param id 商机跟进记录批注人信息主键
     * @return 结果
     */
    @Override
    public int deleteBusinessFollowAnnotaterById(Long id)
    {
        return businessFollowAnnotaterMapper.deleteBusinessFollowAnnotaterById(id);
    }
}
